package com.jy.adscm.operation.cgxsb.service;

import com.jy.adscm.exception.AdscmSystemException;
import com.jy.adscm.operation.cgxsb.bean.SporadicPurchase;
import com.baomidou.mybatisplus.service.IService;
import com.jy.adscm.security.utils.Token;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zyl
 * @since 2019-03-12
 */
public interface SporadicPurchaseService extends IService<SporadicPurchase> {

    boolean insertSporadicPurchase(SporadicPurchase sporadicPurchase) throws AdscmSystemException;

    boolean deleteSporadicPurchase(Integer id, Token token) throws AdscmSystemException;

    Boolean updateSporadicPurchase(SporadicPurchase sporadicPurchase, Token token)throws AdscmSystemException;

    List<SporadicPurchase> selectSporadicPurchase(Token token)throws AdscmSystemException;

    List<SporadicPurchase> selectMySporadicPurchase(Integer taskState, Token token);
}
